#include "xmppcore/protocolrelations.h"

namespace yoohoo_xmppcore {

ProtocolRelations::ProtocolRelations(QSet<ProtocolRelation> protocolRelations) : _protocolRelations(protocolRelations) {
}

QSet<ProtocolRelation> ProtocolRelations::protocolRelations() const {
	return _protocolRelations;
}

void ProtocolRelations::addProtocolRelation(ProtocolRelation protocolRelation) {
	_protocolRelations.insert(protocolRelation);
}

void ProtocolRelations::removeProtocolRelation(ProtocolRelation protocolRelation) {
	_protocolRelations.remove(protocolRelation);
}

}
